package global

import (
	"context"

	"github.com/go-redis/redis/v8"
	"github.com/gorilla/websocket"
	"gorm.io/gorm"
)

var DB *gorm.DB
var Ctx = context.Background()
var Rdb *redis.Client
var ClientMge = make(map[int]Node)

type Node struct {
	Conn *websocket.Conn
	Data chan []byte
}
type Message struct {
	UserId  int    `json:"user_id"`
	DienId  int    `json:"dien_id"`
	Content string `json:"content"`
}
